package main.java;

import org.hsqldb.server.Server;

public class Hsqldb {

	private Server hsqlServer = null;

	public Hsqldb() 
	{
	}

	public void startHsqlDB() {

		hsqlServer = new Server();
		hsqlServer.setDatabaseName(0, "gsidb");
		hsqlServer.setDatabasePath(0, "db/gsidb");

		hsqlServer.start();
	}

	public void closeHsqlDB() {
		if (hsqlServer != null) {
			hsqlServer.stop();
		}
	}
}
